import { _decorator, Component, Node, PhysicsSystem, RigidBody, Vec3 } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('ballController')
export class ballController extends Component {

    @property
    public xSpeed: number = 10;

    @property
    public ySpeed: number = 10;

    start() {
     
        this.node.getComponent(RigidBody).setLinearVelocity(new Vec3(this.xSpeed, 0, this.ySpeed))
    }

    update(deltaTime: number) {
        
    }
}

